import Component, { mixins } from 'vue-class-component'
import { dataMixins } from '@/mixins'
import { Watch } from 'vue-property-decorator'

@Component
export default class extends mixins(dataMixins) {
  // ++++++++++ model ++++++++++
  // ++++++++++ props ++++++++++
  // ++++++++++ data ++++++++++
  // ++++++++++ computed ++++++++++
  get columns(): Array<IColumn> {
    return []
  }

  // ++++++++++ methods normal ++++++++++
  // ++++++++++ methods event ++++++++++
  // ++++++++++ Lifecycle Hooks ++++++++++
  handleRefresh() {
    this.load()
  }

  // ++++++++++ watch ++++++++++
  @Watch('pagination')
  onPaginationWatch() {
    this.load()
  }
}
